﻿using Huirui.Cavan.Domain.MainBoundedContext.SearchModule;
using Huirui.Cavan.Domain.MainBoundedContext.SystemModule;
using Huirui.Cavan.Presentation.Seedwork;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;

namespace Huirui.Cavan.Presentation.ViewModel.SystemModule
{
    public class SupplierViewModel : EntityModel<Supplier, string, SupplierSearch>, ISupplierViewModel
    {
        public IList<SelectListItem> SupplierTypes { get; set; }
        public int Nature { get; set; }
        public int PayType { get; set; }
        public string CityID { get; set; }
        public string ProvinceID { get; set; }
        public int EmployeeRole { get; set; }
        public string Purpose { get; set; }
        public string NoPrefixId { get; set; }

        public SupplierViewModel()
        {
            this.SupplierTypes = new List<SelectListItem>();
        }
    }

    public class SupplierJson : BaseJson<string>
    {
        public bool IsSelected { get; set; }
        public string Name { get; set; }
        public string Contact { get; set; }
        public string Nature { get; set; }
        public string Type { get; set; }
        public string Area { get; set; }
    }

    public class SupplierJsonViewModel : JsonViewModel<SupplierJson>
    {

    }
}
